package org.example.module.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * 获取swagger2的配置
 */
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "app.swagger2")
public class SwaggerSettings {

    @NotNull
    private boolean isShow;
}
